#ifndef __CRC_H__
#define __CRC_H__

#include "type_def.h"

unsigned short CalcCRC(uint8_t *data, uint32_t size);
u16 ModbusCRC_CheckTable(u8 *ptr, u16 len);
uint16_t ModbusCRC_CheckTableLH(uint8_t *ptr, uint16_t len);
u8 SumCheck(u8 *pCheck, int len);
u8 xor_checksum(const unsigned char* data, int length) ;

#endif
